package com.bdqn.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 热销商品后台
 * */
public class IndaxConfig {
    //首页配置项主键id
    private Integer configId;
    //显示字符
    private String configName;
    //类型，1-搜索框热搜 2-搜索下拉框热搜 3-(首页)热销商品 4-(首页)新品上线 5-(首页)为你推荐
    private Integer configType;
    //商品id 默认为0
    private Integer goodsId;
    //点击后的跳转地址(默认不跳转)
    private String redirectUrl;
    //排序值(字段越大越靠前)
    private Integer configRank;
    //删除标识字段(0-未删除 1-已删除)
    private Integer isDeleted;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //创建者id
    private Integer createUser;
    //最新修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    //修改者id
    private Integer updateUser;

    public Integer getConfigId() {
        return configId;
    }

    public void setConfigId(Integer configId) {
        this.configId = configId;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public Integer getConfigType() {
        return configType;
    }

    public void setConfigType(Integer configType) {
        this.configType = configType;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public Integer getConfigRank() {
        return configRank;
    }

    public void setConfigRank(Integer configRank) {
        this.configRank = configRank;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public IndaxConfig(Integer configId, String configName, Integer configType, Integer goodsId, String redirectUrl, Integer configRank, Integer isDeleted, Date createTime, Integer createUser, Date updateTime, Integer updateUser) {
        this.configId = configId;
        this.configName = configName;
        this.configType = configType;
        this.goodsId = goodsId;
        this.redirectUrl = redirectUrl;
        this.configRank = configRank;
        this.isDeleted = isDeleted;
        this.createTime = createTime;
        this.createUser = createUser;
        this.updateTime = updateTime;
        this.updateUser = updateUser;
    }

    public IndaxConfig() {
    }

    @Override
    public String toString() {
        return "IndaxConfig{" +
                "configId=" + configId +
                ", configName='" + configName + '\'' +
                ", configType=" + configType +
                ", goodsId=" + goodsId +
                ", redirectUrl='" + redirectUrl + '\'' +
                ", configRank=" + configRank +
                ", isDeleted=" + isDeleted +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                '}';
    }
}
